import axios from '@/axios';

// 订单列表
export function orderList(data) {
    return axios({
        url: '/order/order-list',
        method: 'post',
        data
    })
}

// 创建订单
export function createOrder(data) {
    return axios({
        url: '/order/create-order',
        method: 'post',
        data
    })
}

// 添加跟进记录
export function addFollow(data) {
    return axios({
        url: '/order/add-follow',
        method: 'post',
        data
    })
}

// 跟进记录
export function followList(data) {
    return axios({
        url: '/order/follow-list',
        method: 'post',
        data
    })
}

// 添加待办信息
export function addSomething(data) {
    return axios({
        url: '/order/add-something',
        method: 'post',
        data
    })
}

// 代办信息
export function somethingLog(data) {
    return axios({
        url: '/order/something-log',
        method: 'post',
        data
    })
}

// 日志
export function userLog(data) {
    return axios({
        url: '/order/log',
        method: 'post',
        data
    })
}

// 修改状态
export function changeStatus(data) {
    return axios({
        url: '/order/change-status',
        method: 'post',
        data
    })
}

// 订单详情
export function infos(data) {
    return axios({
        url: '/order/infos',
        method: 'post',
        data
    })
}

// 收款记录
export function collectionList(data) {
    return axios({
        url: '/order/collection-list',
        method: 'post',
        data
    })
}

// 添加收款记录
export function addCollection(data) {
    return axios({
        url: '/order/add-collection',
        method: 'post',
        data
    })
}

// 删除订单
export function delOrder(data) {
    return axios({
        url: '/order/del-order',
        method: 'post',
        data
    })
}